import { Service } from './common.service';

export class HomeService extends Service {

    /**
     * 获取游戏列表
     *
     * @param param
     */
    getAllGameList(param : any) {
        let self : any = this;
        self.post('game_list', param);
    }
    /**
     * 购买游戏
     *
     * @param param
     */
    payGame(param : any) {
        let self : any = this;
        self.post('game_pay', param);
    }
    /**
     * 获取分类列表
     *
     * @param param
     */
    getCategoryList(param : any) {
        let self : any = this;
        self.get('game_category', param);
    }

}